#include "concatenateVector.h"

using namespace std;

concatenateVector::concatenateVector(int _size, int _labelSuperpixel, char* _labelImage){
	size = _size;
	labelSuperpixel = _labelSuperpixel;
	labelImage = _labelImage;
}

void concatenateVector::setValue(vector<double> _value){
	this->vectorValue = _value;
}

vector<double> concatenateVector::getVectorValue(){
	return this->vectorValue;
}

void concatenateVector::appendVector(vector<double> v) {
	vector<double> temp;
	temp.reserve(vectorValue.size() + v.size());
	temp.insert(temp.end(), vectorValue.begin(), vectorValue.end());
	temp.insert(temp.end(), v.begin(), v.end());
	vectorValue.clear();
	vectorValue = temp;
}

void concatenateVector::setLabelForegroundBackground(int label) {
	this->labelForegroundBackground = label;
}

int concatenateVector::getLabelForegroundBackground() {
	return labelForegroundBackground;
}